package com.bw.lyc.mvp.view.people;

import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;

import androidx.appcompat.app.AppCompatActivity;

import com.bumptech.glide.Glide;
import com.bw.lyc.R;
import com.bw.lyc.util.StatusBarUtils;

public class PeopleValuesActivity extends AppCompatActivity implements View.OnClickListener {

    private ImageView people_values_headimg;
    private ImageView people_values_back;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_people_values);
        StatusBarUtils.with(this)
                .init();
        initView();
        Glide.with(this).load(R.mipmap.peo_val_head).circleCrop().into(people_values_headimg);
        people_values_back.setOnClickListener(this::onClick);
    }

    private void initView() {
        people_values_headimg = (ImageView) findViewById(R.id.people_values_headimg);
        people_values_back = (ImageView) findViewById(R.id.people_values_back);
    }

    @Override
    public void onClick(View v) {
        int id = v.getId();
        if (id == R.id.people_values_back) {
            finish();
        }
    }
}